package org.example.tools;

import com.fasterxml.jackson.databind.JsonNode;
import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
import org.apache.commons.lang3.StringUtils;
import org.example.bean.Appointment;
import org.example.controller.UserChatRequestContext;
import org.springframework.stereotype.Component;

@Component
public class FormTools {
    @Tool(name="表单校验",value = "验证通过返回'验证通过',其他信息表示失败原因")
    public String validateForm(JsonNode json) {
      System.out.println("validateForm:"+json);
      UserChatRequestContext.set(json);
      return "验证通过";
    }
}
